<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="__ADMIN__/css/pintuer.css">
<link rel="stylesheet" href="__ADMIN__/css/admin.css">
<script src="__ADMIN__/js/jquery.js"></script>
<script src="__ADMIN__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>角色列表</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:url('admin/staff/bindrole')}">

      <input type="hidden" name="staff_id" value="{$staffId}" />

      <div class="form-group">
        <div class="label" style="width:120px;">
          <label>管理员角色：</label>
        </div>
        <div class="field" style="padding-top:8px;">
          {foreach name="role" id="ri"}
            <span style="display:inline-block;width:14%;">
              <input type="checkbox" name="role_id[]" value="{$ri.id}"
               {notempty name="ri.pivot"}
                 checked="checked"
               {/notempty}
              />{$ri.name}
            </span>
          {/foreach}
        </div>
      </div>

      <div class="clear"></div>

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body>
</html>